
$(document).ready(function(){	
	//exibe popup se houverem erros
	if($("#erro").val() != ""){		
		if($("#erro").val().split(":",1)[0] == "Erro")
			$(".alert p").css("visibility", "hidden");
		$(".alert").show();
	}

	$($("input[type='text']").get(0)).attr("placeholder", "Informe um login");
	$($("input[type='password']").get(0)).attr("placeholder", "Informe sua senha");
	$($("input[type='password']").get(1)).attr("placeholder", "Confirme sua senha");
	$($("input[type='text']").get(1)).attr("placeholder", "Informe um email");

	$($("input[type='text']").get(1)).attr("type", "email");
	$($("input[type='text']").get(0)).focus();

});
